/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package packet;

import shared.Consts.Priorities;
import client.ClientController;
import server.Game;
import server.Lobby;
import java.io.Serializable;

/**
 *
 * @author Joel Garboden
 */
public abstract class CommandRequest
{
  protected int transactionID;
  protected Priorities priority;
  protected int playerID;

  public final void setPriority(Priorities priority)
  {
    this.priority = priority;
  }

  public final int getPriority()
  {
    return priority.ordinal();
  }

  public final void setID(int playerID)
  {
    this.playerID = playerID;
  }

  public final int getID()
  {
    return playerID;
  }

  public boolean processRequest(Game game)
  {
    return false;
  }

  public boolean execCommand(ClientController client)
  {
    return false;
  }

  public boolean lobbyRequest(Lobby lobby)
  {
    return false;
  }
}
